package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 将套餐id和菜品id绑定,记录在setmeal_dish中
     *
     * @param setmealDishesList
     */
    void saveSetmealWithDish(List<SetmealDish> setmealDishesList);

    /**
     * 根据套餐id删除套餐_菜品表中关联数据
     * @param id
     */
    void deleteSetmealWithDish(Long id);

    /**
     * 根据套餐id查询套餐_菜品表数据
     * @param id
     * @return
     */
    List<SetmealDish> list(Long id);
}
